package com.ai.platform.spider.core.collocate;

import java.io.Serializable;
import java.util.List;
import java.util.Properties;

/**
 * 功能描述 文档
 * 创建者 yeyingsheng
 * 创建时间 2018年06月23日
 */
public class Doc implements Serializable {

    //取名称
    private String name;
    //取规则key
    private String ruleKey;
    //匹配的URL
    private UrlMatchRule urlMatchRule;
    //摘取的字段列表
    private List<Field> fieldList;

    public UrlMatchRule getUrlMatchRule() {
        return urlMatchRule;
    }

    public void setUrlMatchRule(UrlMatchRule urlMatchRule) {
        this.urlMatchRule = urlMatchRule;
    }

    public List<Field> getFieldList() {
        return fieldList;
    }

    public void setFieldList(List<Field> fieldList) {
        this.fieldList = fieldList;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRuleKey() {
        return ruleKey;
    }

    public void setRuleKey(String ruleKey) {
        this.ruleKey = ruleKey;
    }

    public Doc(String name, String ruleKey) {
        this.name = name;
        this.ruleKey = ruleKey;
    }

}
